package com.youseu.taoliving.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.youseu.common.utils.PageUtils;
import com.youseu.taoliving.commodity.entity.AttrgroupEntity;
import com.youseu.taoliving.commodity.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 家居商品属性分组
 *
 * @author tao
 * @email tao@gmail.com
 * @date 2024-08-03 09:40:55
 */
public interface AttrgroupService extends IService<AttrgroupEntity> {

    //map是前端携带过来的参数
    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params,Long categoryId);

    //根据categoryId返回关联的属性组及属性组关联的基本属性
    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCategoryId(Long categoryId);
}

